#include "helper/sqlite/stream/Executor.h"


#include "helper/sqlite/shortcut/Executor.h"

namespace helper {
namespace sqlite {
namespace stream {

Executor::Executor()
{
}
Executor::~Executor() {
}

ExecutionResult Executor::execute(){
  if(isDbValid() && isSqlValid()){
    shortcut::Executor exe(db());
    return exe.execute(sql(), fbind());
  }
  return ExecutionResult::make_error(std::errc::invalid_argument);
}

}//namespace stream
}//namespace sqlite
}//namespace helper
